using System;
using ExternalLib2;

namespace ExternalLib
{
    public class Child
    {
        private int money;

        public Child(int money)
        {
            this.money = money;
        }

        public int Money
        {
            get { return money; }
        }

        public bool IsLargerThanFive()
        {
            return money > 5;
        }

        public void Format(int[] a)
        {
            int temp = a[0];
            a[0] = 100;
            a[0] = temp;

        }

        public void ThrowException()
        {
            throw new Exception("test");
        }

        public void MakeChange(Toy toy)
        {
            toy.PlayedTimes++;   
        }

        public void DoNothing(Toy toy)
        {
        }

        public void Change(string name)
        {
            name += "change";
        }

        public void ChangeName(TestInterface @interface)
        {
            @interface.SetName(@interface.GetName() + "hello");
        }

        public void ChangeValue(TestInterface @interface)
        {
            @interface.SetValue(5);
        }
    }
}